package cn.jiyun.consumer.client;

import cn.jiyun.consumer.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @author Fay
 * @date 2022/6/26&15:58
 */
@Component
public class UserClientFallback implements UserClient {

    @Override
    public User findById(Long id) {
        User user = new User();
        user.setId(id);
        user.setName("异常");
        return user;
    }
}
